<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});
Route::any('login','AdminController@login')->name('login');
Route::any('first','AdminController@first')->name('first');
Route::any('cate','AdminController@cate')->name('cate');
Route::any('add','AdminController@add')->name('add');
Route::any('do_upt','AdminController@do_upt')->name('do_upt');
Route::any('save/{id}','AdminController@save')->name('save');
Route::any('insert','AdminController@insert')->name('insert');
Route::any('del/{id}','AdminController@del')->name('del');
Route::any('proDel/{id}','AdminController@proDel')->name('proDel');
Route::any('do_ist','AdminController@do_ist')->name('do_ist');
Route::any('project_Administrator','AdminController@project_Administrator')->name('project_Administrator');
Route::any('admin_edit/{id}','AdminController@admin_edit')->name('admin_edit');
Route::any('admin_editDo/{id}','AdminController@admin_editDo')->name('admin_editDo');
Route::any('welcome','AdminController@welcome')->name('welcome');
Route::any('index','MasterController@index')->name('index');
Route::any('loginDo','AdminController@loginDo')->name('loginDo');
Route::any('signDo','AdminController@signDo')->name('signDo');
Route::any('sign','AdminController@sign')->name('sign');

//列表显示产品
Route::get('listProduct','ProductController@listProduct');
//添加产品
Route::post('addProduct','ProductController@addProduct');
